import os

basepath = os.path.abspath(__file__)


class Config:
    SECRET_KEY = 'you do not know any about it'
    FLASK_DEBUG = True
    DEBUG = True
    SQLALCHEMY_DATABASE_URL = 'mysql+pymysql://root:123456@localhost/flask'
    SQLALCHEMY_COMMIT_ON_TEARDOWN = True
    SQLALCHEMY_TRACK_MODIFICATIONS = False


class DevelopmentConfig(Config):
    DEBUG = True
    MAIL_SERVER = ""
    MAIL_PORT = 1
    MAIL_USER_NAME = ''
    MAIL_USER_PASSWORD = ''
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:123456@localhost/flask'
    SQLALCHEMY_COMMIT_ON_TEARDOWN = True
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    MAIL_SERVER = ''
    MAIL_PORT = 25
    MAIL_USER_NAME = ''
    MAIL_USER_PASSWORD = ''
    MAIL_USE_TLS = True


config = {
    "config": Config,
    "develop": DevelopmentConfig
}
